import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

//1.重置样式
import './assets/css/reset.css'

//图标
import './assets/css/iconfont.css'

//swiper组件样式
import 'swiper/swiper-bundle.min.css';
//基础样式
import 'swiper/swiper.min.css'

//引入移动设备样式基数配置
import 'lib-flexible/flexible.js'


//fastclick模块
import FastClick from 'fastclick'
FastClick.attach(document.body)

import axios from 'axios'
import VueAxios from 'vue-axios'

//所有的路由跳转之后，所有页面的滚动条返回顶部
router.afterEach( (to,from,next)=>{
	//所有组件跳转之后，滚动条置顶页面顶部
	window.scrollTo(0,0)
} )
createApp(App).use(store).use(router).use(VueAxios, axios).mount("#app");
